package fourfaith.com.ff_sl21_app;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import fourfaith.com.ff_sl21_app.utils.APKVersionCodeUtils;

public class AboutUsActivity extends AppCompatActivity {

    private ImageView back;
    private TextView version;
    private Context context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_us);
        initView();
    }
    public void initView(){
        back = (ImageView)findViewById(R.id.back);
        version = (TextView)findViewById(R.id.version);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        context = this.getApplicationContext();
        String versionName = APKVersionCodeUtils.getVerName(context);
        version.setText("V"+versionName);
    }

}
